-#
-# This file controls the header of the page
-#

#header_content
  .menu
    %ul
      %li 
        = link_to "Home", "/"
      - for page in Page.find(:all)
        %li 
          = link_to page.name, page
  - if session[:user_id]
    .user
      = @user.name
      \:
      = link_to("Logout", :controller => "logins", :action => "logout")
    .user
      = link_to("Settings", :controller => "user_settings", :action => "index")
    - if @user.is_administrator
      .user
        = link_to("Admin", :controller => "admins", :action => "index")
  - else
    .user
      = link_to("Login", :controller => "logins")

  %br{:style => "clear: both;"}